﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars;
using System.Linq;
using QuanLyThuVien.DAO;

namespace QuanLyThuVien.BUS
{
    class TheLoaiBUS
    {
        public static IEnumerable<TheLoai> GetAllTL()
        {
            return TheLoaiDAO.GetAllTL();
        }

        public static void Them(TheLoai TL)
        {
            TheLoaiDAO.Them(TL);
        }

        public static void Sua(TheLoai TL)
        {
            TheLoaiDAO.Sua(TL);
        }

        public static DataGridView GetAllTheLoai()
        {
            return TheLoaiDAO.GetAllTheLoai();
        }

        //kiem tra the loai
        public static int KT_TheLoai(string ten)
        {
            return TheLoaiDAO.KT_TheLoai(ten);
        }

    }
}
